package com.xsyj.awati.fragment;

import android.os.Bundle;
import android.view.View;

import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xsyj.awati.R;
import com.xsyj.awati.entry.IconBean;
import com.yuang.library.base.BaseFragment;

import java.util.Arrays;
import java.util.List;

/**
 * 作者：KD on 2021/12/3
 * <p>
 * 10:47
 */
public class MessageFragment extends BaseFragment {

    private ArtificialBaseAdapter artificialBaseAdapter;
    private RecyclerView messageRecycleView;

    private List<String> message = Arrays.asList("","","","");
    @Override
    public int getLayoutId() {
        return R.layout.message_layout;
    }

    @Override
    public void initUI(View view, Bundle savedInstanceState) {

        messageRecycleView = view.findViewById(R.id.messageRecycleView);


        artificialBaseAdapter = new
                ArtificialBaseAdapter(R.layout.message_item_layout);
        messageRecycleView.setLayoutManager(new LinearLayoutManager(getActivity()));
        messageRecycleView.setAdapter(artificialBaseAdapter);
        artificialBaseAdapter.setNewData(message);
    }

    static class ArtificialBaseAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
        public ArtificialBaseAdapter(int layoutResId) {
            super(layoutResId);
        }

        @Override
        protected void convert(BaseViewHolder helper, String item) {

        }
    }




}
